<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>首页</title>
  <link rel="stylesheet" href="css/basic.css" />
</head>
<body>
  <h2 class="title">数据列表</h2>
  <h3><a href="/add">增加</a></h3>
  <table class="table">
    <tr>
      <th>姓名</th>
      <th>年龄</th>
      <th>性别</th>
      <th>操作</th>
    </tr>
    {{each list}}
      <tr> 
        <td>{{$value.name}}</td>
        <td>{{$value.age}}</td>
        <td>{{$value.sex}}</td>
        <td><a href="/edit?id={{@$value._id}}">编辑</a>　<a href="/delete?id={{@$value._id}}">删除</a></td>
      </tr>
    {{/each}}
  </table>
</body>
</html>